import request from "./request";

async function requestChat(query) {
  try {
    const res = await request.get("/api/agentChat?query=" + query);
    return res.data;
  } catch (e) {
    console.log(e);
    throw error;
  }
}

export default requestChat;